function getUri(address) {
    if(address.indexOf('@') != -1){
        return address.substr(0,address.indexOf('@'));
    }else {
        return address
    }
}
//媒体状态图标
icon = {
    inMeeting : function () {//入会状态
        return "<i class=\"iconfont icon-huiyi\" style=\"font-size:18px; color: #32CD32 ;\"></i>";
    },
    ringing : function () {//呼叫中
        return "<i class=\"iconfont icon-hujiaozhuanyitianchong\" style=\"margin:0 5px;font-size:20px; color: #FFB800 ;\"></i>";
    },
    leaveMeeting :function () {//离会状态
        return "<i class=\"iconfont icon-huiyi\" style=\"font-size:18px; color: #7d8492 ;\"></i>";
    },
    micOff:function (data) {//麦克风关
        return "<i class=\"iconfont icon-mic_off\" onclick='MediaControlTools.mute(1,\""+data.device_id+"\")' style=\"font-size:15px; color: #7d8492 ;display: block;width: 100%;height: 100%;padding: 0\"></i>";
    },
        micOn:function (data) {//麦克风开
        return "<i class=\"iconfont icon-mic\" onclick='MediaControlTools.mute(0,\""+data.device_id+"\")' style=\"font-size:15px; color: #32CD32 ;display: block;width: 100%;height: 100%;padding: 0\"></i>";
    },
    voiceOn:function (data) {//扬声器开
        return "<i class=\"iconfont icon-shengyin_shiti\" onclick='MediaControlTools.quiet(0,\""+data.device_id+"\")' style=\"font-size:20px; color: #32CD32 ; display: block;width: 100%;height: 100%;padding: 0\"></i>";
    },
    voiceOff:function (data) { //扬声器关
        return "<i class=\"iconfont icon-shengyinjingyin\" onclick='MediaControlTools.quiet(1,\""+data.device_id+"\")' style=\"font-size:20px; color: #7d8492 ; display: block;width: 100%;height: 100%;padding: 0\"></i>";
    },
    videoOn:function (data) {//视频开
        return "<i class=\"iconfont icon-iosvideocam\" onclick='MediaControlTools.localVideo(0,\""+data.device_id+"\")' style=\"font-size:20px; color: #32CD32 ;\"></i>";
    },
    videoOff:function (data) {//视频关
        return "<i class=\"iconfont icon-ic_videocam_off\" onclick='MediaControlTools.localVideo(1,\""+data.device_id+"\")' style=\"font-size:20px; color: #7d8492 ;\"></i>";
    },
    connect:function () {//呼叫
        return "<a class=\"iconfont icon-hujiaozhuanyitianchong\" title=\"呼叫\" style=\"margin:0 5px;font-size:20px; color: #999999 ;\" lay-event=\"connSite\"></a>";
    },
    disConnect:function () {//挂断
        return "<a class=\"iconfont icon-guaduan1\" title=\"挂断\" style=\"margin:0 5px;font-size:20px; color: #FF5722 ;\" lay-event=\"disConnSite\"></a>";
    },
    broadcast:function () {//广播
        return "<a class=\"iconfont icon-touping\" title=\"广播\" style=\"margin:0 5px;font-size:20px; color: #999999 ;\" lay-event=\"broadcastSite\"></a>";
    },
    disBroadcast:function () {//取消广播
        return "<a class=\"iconfont icon-touping\" title=\"取消广播\" style=\"margin:0 5px;font-size:20px; color: #2a46cd ;\" lay-event=\"disBroadcastSite\"></a>";
    },
    removable:function () {//移除
        return "<a class=\"iconfont icon-icon_yichu\" title=\"移除\" style=\"margin:0 5px;font-size:20px; color: #FF5722 ;\" lay-event=\"del\"></a>";
    },
    nonRemovable:function () {//不可移除
        return "<a class=\"iconfont icon-icon_yichu\" title=\"不可移除\" style=\"margin:0 5px;font-size:20px; color: #999999 ;\" ></a>";
    },
    reboot:function () {//远程重启
        return "<a class=\"iconfont icon-chongqi\" title=\"远程重启\" style=\"margin:0 5px;font-size:20px; color: #FFB800 ;\" lay-event=\"reboot\"></a>";
    }

}